<?php

abstract class BaseController extends PageController
{
    protected $view;

    public function preAction()
    {
        $this->view = View::Singleton();

        //$wiki = Wiki::getByUrl(trim(Url::getRequestUrl(), '/'));
        $this->view->assign('wiki', $wiki);


        $user = Session::Singleton()->user;
        $user = User::getById(intval($user->id));
        
        /*$r = $user->getSettings();
        $r->mini = true;
        
        $user->save();*/

        View::Singleton()->assign('user', $user);
    }
}
